export const useTeaStore = defineStore('tea', () => {

  let cartsNum = $ref(0)
  let delivery = $ref(0)

  function setCartdNum(payload: number) {
    cartsNum = payload
  }

  function updateDelivery(payload: any) {
    delivery = payload
  }

  return {
    cartsNum: $$(cartsNum),
    delivery: $$(delivery),
    setCartdNum,
    updateDelivery,
  }
}, { unistorage: { key: 'config-app' } })

if (import.meta.hot)
  import.meta.hot.accept(acceptHMRUpdate(useTeaStore, import.meta.hot))
